<div style="margin: 0 auto; width: 600px; border: 1px solid black; padding: 10px;">
<?php $order = $this->order?>
	<h2>Thông tin khách hàng</h2>
	<table border="0" width="100%" cellspacing="0" cellpadding="4">
		<tr>
			<td width="100px;">
				<div>Tên khách hàng: </div>
			</td>
			<td class="2Col"><?php echo $order['customerName']?></td>
			<td>
				<div>Công ty: </div>
			</td>
			<td><?php echo $order['customerCompany']?></td>
		</tr>
		<tr>
			<td>
				<div>CMND / Hộ chiếu: </div>
			</td>
			<td class="2Col"><?php echo $order['customerPassport']?></td>
			<td>
				<div>Điện thoại công ty: </div>
			</td>
			<td><?php echo $order['customerCompanyPhone']?></td>
		</tr>
		<tr>
			<td>
				<div>Điện thoại: </div>
			</td>
			<td class="2Col"><?php echo $order['customerPhone']?></td>
			<td>
				<div>Fax công ty: </div>
			</td>
			<td class="2Col"><?php echo $order['customerCompanyFax']?></td>
		</tr>
		<tr>
			<td>
				<div>Địa chỉ: </div>
			</td>
			<td class="2Col"><?php echo $order['customerAddress']?></td>
			<td>
				<div>Địa chỉ công ty: </div>
			</td>
			<td class="2Col"><?php echo $order['customerCompanyAddress']?></td>
			
		</tr>
	</table>
	<hr />
	<h2>Thông tin đơn hàng</h2>
	<table border="1" style="border-collapse: collapse" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<th style="padding: 5px;">Dịch vụ</th>
			<th style="padding: 5px;">Giá</th>
			<th style="padding: 5px;">Số lượng</th>
			<th style="padding: 5px;">Tổng tiền</th>
		<tr>
		<?php foreach($order['items'] as $item) {?>
		<tr>
			<td style="padding: 5px;"><?php echo $item['productName']?></td>
			<td style="padding: 5px;"><?php echo $item['price']?></td>
			<td style="padding: 5px;"><?php echo $item['quantity']?></td>
			<td style="padding: 5px;"><?php echo $item['total']?></td>
		<tr>	
		<?php }?>
		<?php if ($order['prepaid']) {?>
		<tr>
			<td style="padding: 5px; text-align: right; font-weight: bold;" colspan="3">Trả trước: </td>
			<td style="padding: 5px;"><?php echo $order['prepaid']?></td>
		<tr>
		<?php }?>
		<?php if ($order['fee']) {?>
		<tr>
			<td style="padding: 5px; text-align: right; font-weight: bold;" colspan="3">Phí khác: </td>
			<td style="padding: 5px;"><?php echo $order['fee']?></td>
		<tr>
		<?php }?>
		<?php if ($order['promotion']) {?>
		<tr>
			<td style="padding: 5px; text-align: right; font-weight: bold;" colspan="3">Khuyến mại: </td>
			<td style="padding: 5px;"><?php echo $order['promotion']?></td>
		<tr>
		<?php }?>
		<tr>
			<td style="padding: 5px; text-align: right; font-weight: bold;" colspan="3">Tổng cộng: </td>
			<td style="padding: 5px;"><?php echo $order['total']?></td>
		<tr>
	</table>
	<table width="100%">
		<tr>
			<td>Người giao hóa đơn</td>
			<td></td>
			<td></td>
			<td></td>
			<td>Người nhận hóa đơn</td>
		</tr>
		<tr>
			<td><?php echo $order['createdBy']?></td>
			<td></td>
			<td></td>
			<td></td>
			<td><div style="margin-top: 30px;"><?php echo $order['customerName']?></div></td>
		</tr>
	</table>
</div>